package domain;

/**
 * @author 杨森
 * @date 2022年11月28日 19:43
 */
public class Student {
    //    s_id     int primary key,#学生学号
//    s_name   varchar(32) not null,#学生姓名
//    s_pwd    varchar(32) not null,#学生密码MD5加密
//    s_gender varchar(32) not null,#学生性别
//    s_birth  varchar(32),#学生出生日期
//    s_class  varchar(32) not null default '' ,foreign key (s_class) references class_info(class_name),#班级
//    s_course varchar(32) not null default ''#课程
    private Integer s_id;
    private String s_name;
    private String s_pwd;
    private String s_gender;
    private String s_birth;
    private String s_class;
    private String s_course;

    public Student() {
    }

    public Student(Integer s_id, String s_name, String s_pwd, String s_gender, String s_birth, String s_class, String s_course) {
        this.s_id = s_id;
        this.s_name = s_name;
        this.s_pwd = s_pwd;
        this.s_gender = s_gender;
        this.s_birth = s_birth;
        this.s_class = s_class;
        this.s_course = s_course;
    }

    public Student(String s_course){
        this.s_course=s_course;
    }

    public Integer getS_id() {
        return s_id;
    }

    public void setS_id(Integer s_id) {
        this.s_id = s_id;
    }

    public String getS_name() {
        return s_name;
    }

    public void setS_name(String s_name) {
        this.s_name = s_name;
    }

    public String getS_pwd() {
        return s_pwd;
    }

    public void setS_pwd(String s_pwd) {
        this.s_pwd = s_pwd;
    }

    public String getS_gender() {
        return s_gender;
    }

    public void setS_gender(String s_gender) {
        this.s_gender = s_gender;
    }

    public String getS_birth() {
        return s_birth;
    }

    public void setS_birth(String s_birth) {
        this.s_birth = s_birth;
    }

    public String getS_class() {
        return s_class;
    }

    public void setS_class(String s_class) {
        this.s_class = s_class;
    }

    public String getS_course() {
        return s_course;
    }

    public void setS_course(String s_course) {
        this.s_course = s_course;
    }

    @Override
    public String toString() {
        return s_id+"\t\t"+s_name+"\t\t"+s_gender+"\t\t"+s_birth+"\t\t"+s_class+"\t\t"+s_course;
    }
}
